import request from '@/utils/request';

const fmtDonorApi = {};

fmtDonorApi.consultationQualified = (params) => {
	return request({
		url: '/platform-api/fmt-donor/consultation-qualified',
		method: 'put',
    data: params,
	})
}
fmtDonorApi.list = () => {
	return request({
		url: '/platform-api/fmt-donor/list',
		method: 'get',
	})
}
fmtDonorApi.page = (params) => {
	return request({
		url: '/platform-api/fmt-donor/page',
		method: 'get',
		params: params,
	})
}
fmtDonorApi.add = (params) => {
	return request({
		url: '/platform-api/fmt-donor',
		method: 'post',
		data: params,
	})
}
fmtDonorApi.update = (params) => {
	return request({
		url: '/platform-api/fmt-donor',
		method: 'put',
		data: params,
	})
}
fmtDonorApi.get = (id) => {
	return request({
		url: '/platform-api/fmt-donor/' + id,
		method: 'get',
	})
}
fmtDonorApi.delete = (id) => {
	return request({
		url: '/platform-api/fmt-donor/' + id,
		method: 'delete',
	})
}


export default fmtDonorApi